package com.itheima.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data //生成get/set方法
@Component //将类放入容器
@ConfigurationProperties(prefix = "aliyun.oss") //批量按照前缀注入属性值  aliyun.oss.endpoint
public class AliyunOSSProperties {

    private String endpoint;
    private String accessKeyId;
    private String accessKeySecret;
    private String bucketName;
}
